<%--
功能：促销规则面包屑导航
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>

<%@ tag import="org.springframework.context.ApplicationContext" %>
<%@ tag import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ tag import="com.probiz.estore.sales.service.PromoRuleManager" %>
<%@ tag import="com.probiz.estore.common.model.sales.PromoRule" %>
<%@ tag import="java.util.List" %>

<%@ attribute name="promoRuleId" type="java.lang.Integer" required="true" description="促销活动id"%>

<%
	ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(session.getServletContext());
	PromoRuleManager promoRuleManager = (PromoRuleManager) ctx.getBean("promoRuleManager");
	PromoRule navigatePromoRule = promoRuleManager.getById(promoRuleId);
	request.setAttribute("navigatePromoRule",navigatePromoRule);
%>
<a href="${ctxPath}/index.html"><fmt:message key="menu.index"/></a>&gt;
<a href="${ctxPath}/promo.html"><fmt:message key="promotion.title"/></a>&gt;${navigatePromoRule.name}


